package com.cjh.task;

import lombok.extern.slf4j.Slf4j;
import org.springframework.context.annotation.Configuration;
import org.springframework.scheduling.annotation.EnableScheduling;
import org.springframework.scheduling.annotation.Scheduled;

@EnableScheduling//开启定时任务
@Configuration
@Slf4j
public class MyTask {

//    @Scheduled(cron = "*/1 * * * * ?")
//    private void task() {
//        System.err.println("task start...");
//    }
}